home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000215_fdc@columbia.edu_Wed Jul 17 10:38:08 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  4KB  |  98 lines

  1. Article: 13527 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: How to check that voicemail responds?
  6. Date: 17 Jul 2002 10:37:59 -0400
  7. Organization: Columbia University
  8. Lines: 81
  9. Message-ID: <ah3vg7$rrd$1@watsol.cc.columbia.edu>
  10. References: <s5bZ8.149$2P6.3522@read2.inet.fi>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1026916681 4402 128.59.39.139 (17 Jul 2002 14:38:01 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 17 Jul 2002 14:38:01 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13527
  16.  
  17. In article <s5bZ8.149$2P6.3522@read2.inet.fi>,
  18. ralf.strandell <ralf.strandell@silja.com> wrote:
  19. : Is it possible to use Kermit to check that a computer-based voicemail system
  20. : (those "press one to ..., press two to..." -systems) is responding?
  21. Although Kermit was not intended for voice telephony work, you might be able
  22. to use it.
  23.  
  24. : The dial command returns "NO CARRIER" both when I answer the call and when I
  25. : do not answer the call.
  26. :
  27. There's no carrier on a voice call.  If you want Kermit to place a voice
  28. call, you'll need to change the modem commands:
  29.  
  30.   show modem
  31.   set modem command ...
  32.  
  33. to do whatever your modem requires to make a voice, rather than data, call.
  34.  
  35. Since Kermit was not designed to interact with a voice-mode call-processing
  36. system, you might need write a script to send commands to the modem and
  37. read and act on its responses.
  38.  
  39. : I need some method of detecting the answer when
  40. : there is no dial-in service on the other end. (I need to detect incoming
  41. : "voice")
  42. You'll have to read your modem manual about this.  Some modems have voice
  43. features; some don't.  Voice-mode commands and responses might differ from
  44. modem to modem.  Examples for Lucent VENUS chipset modems:
  45.  
  46.   AT+FCLASS=8     Enter voice mode
  47.   AT+VLS=n        Set analong source/destination
  48.   AT+VTD=n        Set DTMF tone generation duration
  49.   AT+VTR          Start voice transmission and reception 
  50.  
  51. : Then it would be possible to tell if it's local modem, the phone line / the
  52. : remote modem or the remote system that has failed.
  53. The Lucent manual says "The modem will return OK when going off-hook in voice
  54. mode.  After answering in voice mode the modem may send any of the following
  55. <DLE> shielded event codes to the DTE, as appropriate:
  56.  
  57.   0-9, A-D, #, *  DTMF tones
  58.   a               Answer tone
  59.   b               Busy tone
  60.   c               Fax calling tone     
  61.   d               Dial tone
  62.   e               Data calling tone
  63.   h               Local phone on-hook
  64.   H               Local phone off-hook
  65.   R               Ring
  66.   s               Silence timer expired
  67.   <ETX>           End of voice data transmission"
  68.  
  69. That's just a sample, but it gives the flavor of how you might be able to
  70. control a voice call through a dialog with your modem.
  71.  
  72. However, I'm not sure this is going to help much in your case.  If the
  73. called party is not returning DTMF tones or generating other events detectable
  74. by the modem (the ones listed above), Kermit is not going to get any signals
  75. or prompts from the modem to act on.  There's no way Kermit can "listen" to
  76. a voice on the far end saying "press One, press Two, ..." and know exactly
  77. when to send "ATDT2" (e.g., to press Two).  On the other hand, most call
  78. processing systems let you "type ahead", so you don't necessarily have to
  79. wait.  If you always want to do the same thing, maybe it's sufficient to
  80. use something like this:
  81.  
  82.   AT+FCLASS=8
  83.   ATDTxxxxxxx  ; Dial the phone number
  84.   
  85. wait for the response, e.g. <DLE>a<ETX>, allowing for all possible responses
  86. and handling them appropriately.  Then if the call is answered, PAUSE for
  87. the appropriate number of seconds, then send the desired DTMF tone.
  88.  
  89. Questions about voice calls are becoming more frequent; maybe somebody who
  90. develops a working application could submit it to the Kermit script library:
  91.  
  92.   http://www.columbia.edu/kermit/ckscripts.html
  93.  
  94. - Frank
  95.